Efficiently Remove Duplicates From A Php Array While Preserving Original Formatting